package io.datajek.spring.basics.movierecommendersystem.partone.partTwo;

import org.springframework.stereotype.Component;

public class RecommenderImplementation {

    //使用过滤器接口选择过滤器
    public Filter filter;
    public RecommenderImplementation(Filter filter){
        super();
        this.filter = filter;

    }
        public String[] recommendMovies (String movie){


            System.out.println("正在使用的过滤器名称："+filter+"\n");
            //使用基于内容的过滤表来寻找类似的电影

            //ContentBasedFilter contentBasedFilter = new ContentBasedFilter();
            String[] results = filter.getRecommendations("Finding Dory");

            //返回结果
            // return new String{"M1","M2","M3"};
            return results;

        }
}

